package cn.uin.domain.oss.service.file;

import cn.uin.domain.oss.model.entity.HomeAttachmentEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName IFileService
 * @Description:文件服务接口
 * @Author: Administrator
 * @CreateDate: 2025/11/4 16:07
 * @Version: 1.0
 */
public interface IFileService {

	/**
	 * 上传文件
	 * @param file
	 * @param uploadType
	 */
	HomeAttachmentEntity uploadFile(MultipartFile file, Integer uploadType);

	/**
	 * 获取文件访问链接
	 * @param fileName
	 * @return
	 */
	String getFileUrl(Long fileName, Integer uploadType);

}
